import DefaultTheme from 'vitepress/theme'
// 导入组件库样式
// import PghUI from '@pgh-big-screen/vue-ui'
// import "@pgh-big-screen/vue-ui/dist/index.css"
// import "./style/var.css"
import "@pgh-big-screen/examples/style.css"

import {
  AntDesignContainer,
  ElementPlusContainer,
  NaiveUIContainer,
} from '@vitepress-demo-preview/component';
import '@vitepress-demo-preview/component/dist/style.css';
import { defineClientComponentConfig } from '@vitepress-demo-preview/core';


export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
     // 注册预览容器组件
     app.component('demo-preview', AntDesignContainer);

      // 自动加载配置
      defineClientComponentConfig({
        copySuccessText: '代码已复制到剪贴板！',
        vueApp: app,
      });

       // 全局注册组件库（可选，也可在文档中按需导入）
       // app.use(PghUI)
  }
}